package com.jzo2o.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.api.customer.dto.response.AddressBookResDTO;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.AddressBook;
import com.jzo2o.customer.model.dto.request.AddressBookPageQueryReqDTO;
import com.jzo2o.customer.model.dto.request.AddressBookUpsertReqDTO;

public interface AddressBookService extends IService<AddressBook> {
    void add(AddressBookUpsertReqDTO addressBookUpsertReqDTO);

    PageResult<AddressBookResDTO> page(AddressBookPageQueryReqDTO addressBookPageQueryReqDTO);

    void update(long id, AddressBookUpsertReqDTO addressBookUpsertReqDTO);

    AddressBookResDTO defaultAddress();

    void updateDefaultStatus(Long aLong, long id, Integer flag);
}
